const db= require('../db/index');
let getcates=(req,res)=>{
    const catesStr=`select * from ev_article_cate where is_delete=0 order by Id asc`
    db.query(catesStr,(err,result)=>{
        if(err) return res.cc(err);
        res.send({
            status: 0,
            message:'文章信息获取成功',
            data: result
        })
    })
}
module.exports = {
    getcates
}